package com.clkj.xiuzheng.dao.shangcheng;

import com.clkj.xiuzheng.pojo.shangcheng.PromoCode;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

@Repository
public interface PromoCodeMapper extends Mapper<PromoCode>, MySqlMapper<PromoCode> {
    @Select({
            "<script>",
            "SELECT * FROM t_xz_PromoCode   WHERE company_id=#{companyId}",
            "</script>"
    })
    List<PromoCode> getCompanyCodeList(Integer companyId);
}
